package cn.itsource.basic.query;

public class BaseQuery{
    //当前页
    private Integer currentPage = 1;
    //每页10条
    private Integer pageSize = 10;

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    //javabean 的可读属性 #{start}
    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }

}
